package com.hxzy.controller.admin.orders.req;

import com.hxzy.common.vo.req.PageReq;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/7/26 18:42
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class OrdersReq extends PageReq {

    private String number;

    /**
     * 订单状态 (0-全部，1-待付款，2-待发货，3-已派送，4-已完成，5-已取消)
     */
    private String orderState;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 商家ID
     */
    private Long merchantId;
}
